package homewoek12月19号.homwwork.h7;

import java.io.Serializable;
import java.util.Date;

public class Book implements Serializable {
    private String bookname;
    private String author;
    private double price;
    private Date publishDate;

    @Override
    public String toString() {
        return "Book{" +
                "bookname='" + bookname + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", publishDate=" + publishDate +
                '}';
    }

    public Book() {
    }

    public Book(String bookname, String author, double price, Date publishDate) {
        this.bookname = bookname;
        this.author = author;
        this.price = price;
        this.publishDate = publishDate;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }
}
